package com.sansan.qiangji.service.impl.base;

import com.sansan.qiangji.entity.base.DeviceAlarm;
import com.sansan.qiangji.entity.base.example.DeviceAlarmExample;
import com.sansan.qiangji.mapper.base.DeviceAlarmMapper;
import com.sansan.qiangji.service.inter.base.DeviceAlarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceAlarmServiceImpl implements DeviceAlarmService {
    @Autowired
    private DeviceAlarmMapper deviceAlarmMapper;


    @Override
    public long countByExample(DeviceAlarmExample example) {
        return deviceAlarmMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(DeviceAlarmExample example) {
        return deviceAlarmMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return deviceAlarmMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(DeviceAlarm record) {
        return deviceAlarmMapper.insert(record);
    }

    @Override
    public int insertSelective(DeviceAlarm record) {
        return deviceAlarmMapper.insertSelective(record);
    }

    @Override
    public List<DeviceAlarm> selectByExample(DeviceAlarmExample example) {
        return deviceAlarmMapper.selectByExample(example);
    }

    @Override
    public DeviceAlarm selectByPrimaryKey(Integer id) {
        return deviceAlarmMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(DeviceAlarm record, DeviceAlarmExample example) {
        return deviceAlarmMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(DeviceAlarm record, DeviceAlarmExample example) {
        return deviceAlarmMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(DeviceAlarm record) {
        return deviceAlarmMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DeviceAlarm record) {
        return deviceAlarmMapper.updateByPrimaryKey(record);
    }
}
